package com.bos.report.model;

/**
 * Created by IntelliJ IDEA.
 * User: Latief
 * Date: 5/30/11
 * Time: 2:58 PM
 * To change this template use File | Settings | File Templates.
 */
public class DanaBosKecamatan implements ReportModel{

    private String namaKecamatan;
    private long dana;

    public String getNamaKecamatan() {
        return namaKecamatan;
    }

    public void setNamaKecamatan(String namaKecamatan) {
        this.namaKecamatan = namaKecamatan;
    }

    public long getDana() {
        return dana;
    }

    public void setDana(long dana) {
        this.dana = dana;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof DanaBosKecamatan)) return false;

        DanaBosKecamatan that = (DanaBosKecamatan) o;

        if (dana != that.dana) return false;
        if (namaKecamatan != null ? !namaKecamatan.equals(that.namaKecamatan) : that.namaKecamatan != null)
            return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = namaKecamatan != null ? namaKecamatan.hashCode() : 0;
        result = 31 * result + (int) (dana ^ (dana >>> 32));
        return result;
    }

    @Override
    public String toString() {
        return "DanaBosKecamatan{" +
                "namaKecamatan='" + namaKecamatan + '\'' +
                ", dana=" + dana +
                '}';
    }
}
